home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / DynaDoodle / Doodle.h < prev    next >
Text File  |  1993-12-15  |  2KB  |  33 lines

  1. /**------------------------------------*------------------------------------**
  2.     RELEASED TO THE PUBLIC DOMAIN BY CODEWORKS DEVELOPMENT, DECEMBER 1993.
  3.     You may freely copy, distribute and reuse the code in this example. Codeworks disclaims any warranty of any kind, expressed or implied, as to its fitness for any particular use.
  4.     Author:  Andrew Vyrros, av@codeworks.com
  5.  **------------------------------------*------------------------------------**/
  6. /**------------------------------------*------------------------------------**
  7.     File:    Doodle.m
  8.     Project: DynaDoodle
  9.     Info:    Implementation of the Doodle class. Doodle is a subclass of View for creating arbitrary silly drawings. Doodle implements the basic behavior of setting foreground an background colors and loading a nib with custom controls. Subclasses, which are loaded from dynamic modules, provide the specific drawing functionality.
  10.  **------------------------------------*------------------------------------**/
  11.  
  12. #import <appkit/View.h>
  13.  
  14.  
  15. @interface Doodle:View
  16. {
  17.   NXColor             foregroundColor;   // color for foreground drawing
  18.   NXColor             backgroundColor;   // color for background drawing
  19.   id                  customControlView; // outlet to View containing special
  20.                                          // controls, in {className}.nib
  21. }
  22.  
  23. - initFrame:(const NXRect *)f;
  24. - free;
  25. - customControlView;
  26. - loadNib;
  27. - didLoadNib;
  28. - drawSelf:(const NXRect *)rects :(int)numRects;
  29. - setForegroundColor:(NXColor)c;
  30. - setBackgroundColor:(NXColor)c;
  31.  
  32. @end
  33.